<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
	<h:head>
		<title>Post Bid Request</title>
		<link rel="stylesheet" type="text/css" href="../css/style.css"/>
	</h:head>
	
	<ui:include src="ComponentCriteria.xhtml"></ui:include>
	
	<h:body>
		<h:form>
            Quantity: <h:inputText id="txtQuantity" value="#{requestManager.request.quantity}"></h:inputText> 
            <br/>
            
            Price Threeshold: <h:inputText id="txtPrice" value="#{requestManager.request.priceThreshold}"></h:inputText> 
            <br/>
            
            Finish Date: <h:inputText id="txtFinishDate" value="#{requestManager.date}">
            	<f:convertDateTime type="date" dateType="short" />
            </h:inputText> 
            <br/><br/>
            
            <h:commandButton id="submit" action="#{requestManager.validateAndSaveRequest}" value="Post Request"></h:commandButton>
        </h:form>
        <br/>
        <br/>
       <h:outputLabel class="redFont" id="lblResult" value="#{result}"/>
	</h:body>
</html>
